import 'package:flutter/material.dart';

import 'package:fluro/fluro.dart';

import 'package:logging/logging.dart';

import 'package:xxx_app/src/routes.dart';
import 'package:xxx_app/src/config/application.dart';

import 'package:xxx_app/constants.dart';


final _logger = new Logger('signin');

class SigninScreen extends StatefulWidget {
  @override
  _SigninScreenState createState() => _SigninScreenState();
}

class _SigninScreenState extends State<SigninScreen> {



  void showSignup() {
    _logger.finest(" ----- ====== ------ ===== ");
    Application.router.navigateTo(context, AppRoutes.signup_screen, transition: TransitionType.inFromRight);

  }

  void showFindpassword() {
    Application.router.navigateTo(context, AppRoutes.findpassword_screen, transition: TransitionType.inFromRight);
    
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      
      body: Container(
        
        child: Column(
          children: <Widget>[

            Text(
              "Signin",
              style: TextStyle(fontSize: 32.0),
            ),

            FlatButton(
              color: Color(AppColors.primaryColor ),
              textColor: Colors.white,

              child: Text(
                "注册",
              ),
              onPressed: showSignup,
              
            ),

            FlatButton(
              color: Color(AppColors.primaryColor ),
              textColor: Colors.white,

              child: Text(
                "找回密码",
              ),
              onPressed: showFindpassword,
              
            ),

          ],

        ),

      )
    );
  }
}